﻿<xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema"
    version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    exclude-result-prefixes="xsl x">

	<xsl:output omit-xml-declaration="yes" method="html"/>

	<xsl:template match="/">

		<div style="width:100%;">
			<div style="width:49%;float:left">
				<ul class="siteMap">
					<xsl:apply-templates select="Items/Item[(position() mod 2) = 0]"/>
				</ul>
			</div>

			<div style="width:49%;float:right">
				<ul class="siteMap">
					<xsl:apply-templates select="Items/Item[(position() mod 2) = 1]"/>
				</ul>
			</div>
		</div>
	</xsl:template>

	<xsl:template match="Item">

		<li class="siteMapSection">
			<a href="{@Url}">
				<xsl:value-of select="@Title" disable-output-escaping="yes"/>
			</a>
			<xsl:apply-templates select="Item" />
		</li>

	</xsl:template>

	<xsl:template match="Item/Item">
		<div class="siteMap">
			<a href="{@Url}">
				<xsl:value-of select="@Title" disable-output-escaping="yes"/>
			</a>
		</div>
	</xsl:template>

</xsl:stylesheet>
